﻿using Appliaction.Dto.DB;
using Domain.Entitys.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.IAppServices.DB
{
    public interface IDb_AttachmentService
    {
        /// <summary>
        /// 添加文件信息
        /// </summary>
        /// <param name="db_Attachment"></param>
        /// <returns></returns>
        Task<int> AttachmetAddAsync(Db_AttachmentFileAddDto db_Attachment);

        /// <summary>
        /// 根据编号查询对应的附件信息
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<List<Db_Attachment>> GetDb_AttachmentsAsync(string code);

        /// <summary>
        /// 根据编号删除对应公共附件
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        int Attachmetdel(string code);
    }
}
